package com.hsy.crm.web.domain.vo.asyn;

import com.hsy.crm.web.domain.entity.OrderDetail;

public class InStoreDetail {

    private Long id;
    private Long productId;
    private Long companyId;
    private Long storeId;
    private Long unitId;
    private Long number;
    private Long price;
    private Long percentPrice;
    private Long purPercentPrice;
    private Integer orderType;

    private Long totalPrice;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    public Long getStoreId() {
        return storeId;
    }

    public void setStoreId(Long storeId) {
        this.storeId = storeId;
    }

    public Long getUnitId() {
        return unitId;
    }

    public void setUnitId(Long unitId) {
        this.unitId = unitId;
    }

    public Long getNumber() {
        return number;
    }

    public void setNumber(Long number) {
        this.number = number;
    }

    public Long getPrice() {
        return price;
    }

    public void setPrice(Long price) {
        this.price = price;
    }

    public Long getPercentPrice() {
        return percentPrice;
    }

    public void setPercentPrice(Long percentPrice) {
        this.percentPrice = percentPrice;
    }

    public Long getPurPercentPrice() {
        return purPercentPrice;
    }

    public void setPurPercentPrice(Long purPercentPrice) {
        this.purPercentPrice = purPercentPrice;
    }

    public Integer getOrderType() {
        return orderType;
    }

    public void setOrderType(Integer orderType) {
        this.orderType = orderType;
    }

    public Long getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(Long totalPrice) {
        this.totalPrice = totalPrice;
    }

    public OrderDetail toOrderDetail(){
        OrderDetail detail = new OrderDetail();
        detail.setId(this.getId());
        detail.setProductId(this.getProductId());
        detail.setCompanyId(this.getCompanyId());
        detail.setStoreId(this.getStoreId());
        detail.setUnitId(this.getUnitId());
        detail.setNumber(this.getNumber());
        detail.setPrice(this.getPrice());
        detail.setPercentPrice(this.getPercentPrice());
        detail.setPurPercentPrice(this.getPurPercentPrice());
        detail.setOrderType(this.getOrderType());
        return detail;
    }
}
